﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ShowArticle.aspx.cs" Inherits="KBVault.Web.Public.ShowArticle" %>

<%@ Register Src="~/Public/UC/SocialShare.ascx" TagPrefix="KB" TagName="ShareThis" %>
<%@ Register Src="~/Public/UC/KBDisqus.ascx" TagPrefix="KB" TagName="Disqus" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">    
        <div class="col-lg-10">
            <h2 class="section-title clearfix">
                <span class="line"></span>
                <asp:Label runat="server" ID="articleTitle"></asp:Label>
            </h2>
            <span><i class="fa fa-folder-open-o fa-fw text-muted"></i>
                <asp:HyperLink runat="server" ID="linkCategory"></asp:HyperLink>
            </span>
            &nbsp;
            <asp:HyperLink runat="server" ID="linkEdit"><span class="fa fa-edit fa-fw"></span>Edit Article</asp:HyperLink>
            <asp:HyperLink runat="server" CssClass="pull-right" ID="linkExport" Target="_blank"><i class="fa fa-fw fa-file"></i>Printer Friendly View</asp:HyperLink>        
            <%--- 
                <asp:HyperLink runat="server" CssClass="pull-right" ID="linkExport" Target="_blank"><i class="fa fa-fw fa-file"></i>Export To PDF</asp:HyperLink>        
            ---%>
            <div class="margin-10">
                <div runat="server" id="articleContent" class="col-lg-12">
                </div>            
            </div>
        </div>        
        
        <div class="col-lg-2">                
            <div class="row clearfix">                  
                <asp:LinkButton CssClass="btn-info btn" runat="server" ID="btnLike" OnClick="btnLike_Click"><i class="fa fa-fw fa-thumbs-o-up"></i>I like this </asp:LinkButton>
                <span runat="server" id="htmlLikeCount" class="btn btn-default" visible="false"></span>
                <br />
                <br />                                                                                  
                <div class="clearfix">                        
                    <h4 class="section-title "><span class="line"></span>Similar Articles</h4>
                    <small runat="server" id="NoArticlesSpan">No similar articles found.</small>
                    <asp:Repeater runat="server" ID="rptSimilarArticles">
                        <ItemTemplate>
                            <i class="fa fa-fw fa-file-text"></i>
                            <a title='<%#Eval("Title") %>' href='/Public/ShowArticle.aspx?Article=<%#Eval("Id")%>'><small><%#Eval("ShortTitle")%>...</small></a><br /> 
                        </ItemTemplate>                                                        
                    </asp:Repeater>
                </div>                
                <div class="clearfix margin-10">           
                <h4 class="section-title "><span class="line"></span>Tags</h4> 
                    <asp:Repeater runat="server" ID="articleTags">
                        <ItemTemplate>
                            <a class="btn-xs btn btn-primary " href='/Public/ShowTag.aspx?Tag=<%#HttpUtility.UrlEncode(Eval("Name").ToString())%>'><%#Eval("Name") %></a>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div class="clearfix margin-10">
                    <KB:ShareThis ID="ShareThis1" runat="server" />
                </div>
            </div>                
            
        </div>        
        
        <div id="attachmentContainer" class="clearfix col-lg-10" runat="server">            
            <asp:Repeater runat="server" ID="rptAttachments" >
                <ItemTemplate>
                    <div class="pull-left">                                                                
                        <a href='<%#Eval("Href")%>' target="_blank" class="btn btn-primary">
                        <span class="glyphicon glyphicon-paperclip"></span>
                        <%#Eval("FileName")%>                                
                        </a>&nbsp;
                    </div>
                </ItemTemplate>
            </asp:Repeater>
            <hr />
        </div>         
        <div class="col-lg-10 clearfix">
            <KB:Disqus runat="server" id="disqusContainer"></KB:Disqus>
        </div>
        
    </div>
</asp:Content>
